package day05;
import java.util.Arrays;
public class homework3 {
    public static void main(String[] args) {
        int[] a={10,20,30,40,50};
        a=Arrays.copyOf(a,a.length+1);
        for(int i=0;i<a.length;i++){
            System.out.print(a[i]+"\t");
        }
        System.out.println();

            int[]b={20,45,78,90};
            b=Arrays.copyOf(b,b.length+2);
            for(int j=0;j<b.length;j++){
                System.out.print(b[j]+"\t");
            }


        }
    }

